<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE>
<head>
	<base href="<%=basePath%>">
	<meta charset="utf-8" />
	<link href="css/left.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css" type="text/css">
	<script type="text/javascript" src="js/new_file.js"></script>

<script type="text/javascript">
	$(function(){
		// 三级菜单点击
		$('.title').click(function(){
			var $ul = $(this).next('ul');
			$('dd').find('.menuson').slideUp();
			if($ul.is(':visible')){
				$(this).next('.menuson').slideUp();
			}else{
				$(this).next('.menuson').slideDown();
			}
		});
	});
</script>


</head>

<body style="background:orange;">
	<div class="lefttop"><span></span>功能模块</div>
    
    <dl class="leftmenu">
    <c:choose>
 	    <c:when test="${param.action == 'purperson' }">
		    <dd>
		    <div class="title">
		    	<span><i style="font-size:20px" class="fa">&#xf0f9</i></span>药品管理
		    </div>
		    
		    	<ul class="menuson">
			        <li><cite></cite><a href="PurpersonPage/Medicine.jsp" target="rightFrame">药品管理</a><i></i></li>
		        </ul>    
		    </dd>
	        
	  
		    <dd>
		    	<div class="title"><span><i style="font-size:20px" class="fa">&#xf0f1</i></span>个人信息 </div>
		    	<ul class="menuson">
			     	<li><cite></cite><a href="PurpersonPage/UserInfo.jsp" target="rightFrame">查看个人信息</a><i></i></li>
			     	<li><cite></cite><a href="PurpersonPage/ChangePwd.jsp" target="rightFrame">修改密码</a><i></i></li>
		    	 </ul>    
		    </dd>
	    </c:when>
	    <c:when test="${param.action == 'clerk' }">
	         <!--药品管理-->
	   		<dd>
		    <div class="title">
		    	<span><i style="font-size:20px" class="fa">&#xf0f9</i></span>药品管理
		    </div>
		    	<ul class="menuson">
			        <li><cite></cite><a href="Clerk/Medicine.jsp" target="rightFrame">药品管理</a><i></i></li>
		        </ul>    
		    </dd>
		    <!--顾客管理-->
		    <dd>
		    <div class="title">
		    	<span><i style="font-size:20px" class="fa">&#xf0f8</i></span>顾客管理
		    </div>
		    	<ul class="menuson">
			        <li><cite></cite><a href="Clerk/Client.jsp" target="rightFrame">顾客管理</a><i></i></li>
		        </ul>  
		           
		    </dd>
		    <!--个人信息-->
	    	<dd>
		    	<div class="title"><span><i style="font-size:20px" class="fa">&#xf0f1</i></span>个人信息 </div>
		    	<ul class="menuson">
			     	<li><cite></cite><a href="Clerk/UserInfo.jsp" target="rightFrame">查看个人信息</a><i></i></li>
			     	<li><cite></cite><a href="Clerk/ChangePwd.jsp" target="rightFrame">修改密码</a><i></i></li>
		    	 </ul>    
		    </dd>
	    </c:when>
    	<c:when test="${param.action == 'shopowner' }">
    		 <!--顾客管理-->
	   		<dd>
		    <div class="title">
		    	<span><i style="font-size:20px" class="fa">&#xf0f9</i></span>店员管理
		    </div>
		    	<ul class="menuson">
			        <li><cite></cite><a href="Shopowner/UpdataClerk.jsp" target="rightFrame">店员管理</a><i></i></li>
		        </ul>    
		    </dd>
		     <!--进货人员管理-->
	   		<dd>
		    <div class="title">
		    	<span><i style="font-size:20px" class="fa">&#xf0f9</i></span>进货人员
		    </div>
		    	<ul class="menuson">
			        <li><cite></cite><a href="Shopowner/Updatapurperson.jsp" target="rightFrame">进货人员</a><i></i></li>
		        </ul>    
		    </dd>
		    <!--资金明细-->
	   		
		     <!--个人信息-->
	    	<dd>
		    	<div class="title"><span><i style="font-size:20px" class="fa">&#xf0f1</i></span>个人信息 </div>
		    	<ul class="menuson">
			     	<li><cite></cite><a href="Shopowner/UserInfo.jsp" target="rightFrame">查看个人信息</a><i></i></li>
			     	<li><cite></cite><a href="Shopowner/ChangePwd.jsp" target="rightFrame">修改密码</a><i></i></li>
		    	 </ul>    
		    </dd>
    	</c:when>
    </c:choose>
    
  </dl>
    
</body>
</html>
